package zijin.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: hejianding
 * @Date: 2021/3/12 15:06
 * @Version: 1.0
 */
@RestController
public class HelloController {
    @RequestMapping("/hello")
    public String hello(String name) {
        try {
            System.out.println("BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB");
            //睡眠60秒，测试feign的熔断、降级
            Thread.sleep(5 );
        }catch (Exception e){
            System.out.println("cccccccccccccccccccccccccc");
            e.printStackTrace();
        }
        return "hello " + name;
    }
}
